{include file="admin/public/header" /}

{block name="body"}
<div class="main-box clearfix" style="padding:10px;">
	<header class="main-box-header clearfix">
		<div class="ibox-title">
                        <h5>插件列表</h5>
                       
                    </div>
                    <div class="ibox-tools">
                <a class="btn btn-info btn-xs" href="{:url('index?refresh=1')}">更 新</a>
			<a class="btn btn-primary btn-xs" href="{:url('add')}">新 增</a>
            </div>

	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive clearfix">
			<table class="table table-hover">
				<thead>
					<tr>
						<th><input class="checkbox check-all chooseall" type="checkbox"></th>
						<th>ID</th>
						<th>名称</th>
						<th>标识</th>
						<th>描述</th>
						<th>状态</th>
						<th>作者</th>
						<th>版本</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="item"}
					<tr>
						<td><input class="ids row-selected" classs="checkbox1" type="checkbox" name="id[]" value="{$item['id']}"></td>
						<td>{$item['id']|default=0}</td>
						<td>{$item['title']}</td>
						<td>{$item['name']}</td>
						<td>{$item['description']}</td>
						<td>{$item['status_text']}</td>
						<td>{$item['author']}</td>
						<td>{$item['version']}</td>
						<td>
							{if !$item['isinstall']}
							<a href="{:url('install?addon_name='.$item['name'])}" class="ajax-get">安装</a>
							{else/}
							<a href="{:url('uninstall?id='.$item['id'])}" class="confirm ajax-get">卸载</a>
							{if $item['status']}
							<a href="{:url('disable?id='.$item['id'])}" class="confirm ajax-get">禁用</a>
							{else/}
							<a href="{:url('enable?id='.$item['id'])}" class="confirm ajax-get">启用</a>
							{/if}
							<a href="{:url('config?id='.$item['id'])}">设置</a>
							{/if}
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			{$page}
		</div>
		<div class="mod-table-foot" >
	        <a class="btn btn-danger cmzdelmore"  where="id" table="{:encode('addons')}">删除</a>

	        <!-- <a class="btn btn-info cmzsort" table="bNnmZYf5aMWT5hklZXg6f918e" where="id" >排序</a> -->
	    </div>
	</div>
</div>
{/block}
